package cn.iocoder.yudao.module.system.controller.admin.warehouse.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@Schema(description = "入库请求")
public class GoldInReqVO {
    @Schema(description = "仓库ID", required = true, example = "1")
    @NotNull
    private Long warehouseId;

    @Schema(description = "操作克重", required = true, example = "10.500")
    @NotNull
    @DecimalMin("0.001")
    @Digits(integer = 7, fraction = 3)
    private BigDecimal weight;

    @Schema(description = "业务类型", required = true, example = "1")
    @NotBlank
    private String operationSubtype;

    @Schema(description = "备注", example = "备注信息")
    private String remark;

    @Schema(description = "附件URL", example = "http://example.com/file.jpg")
    @NotBlank
    private String attachmentUrl;

    @NotBlank
    @Schema(description = "操作人", example = "张")
    private String creator;
}